package com.snail.poker.dao;

import java.util.List;

import com.snail.poker.model.Innings;
import com.snail.poker.web.bean.PageBean;

/**
 * 牌局中的各概率等数据存储接口
 * 
 * @author Snail
 * 
 */
public interface InningsDao {
	/**
	 * 新牌局中产生的各项数据指标的记录
	 * 
	 * @param innings
	 * @throws Exception
	 */
	public abstract void addInnings(Innings innings) throws Exception;

	/**
	 * 删除与ID相关的各项数据指标
	 * 
	 * @param inning
	 *            牌局标识
	 * @throws Exception
	 */
	public abstract void delInnings(int inning) throws Exception;

	/**
	 * 获取牌局中产生的各项数据指标
	 * 
	 * @param inning
	 *            牌局标识
	 * @return
	 * @throws Exception
	 */
	public abstract Innings getInnings(int inning) throws Exception;

	/**
	 * 查询牌局中各项数据指标列表
	 * 
	 * @return
	 */
	public abstract PageBean queryInnings();

	/**
	 * 根据条件查询牌局中各项数据指标列表
	 * 
	 * @param innings
	 * @param among
	 * @return
	 */
	public abstract PageBean findInnings(Innings innings, Double[] among);

	/**
	 * 查询所有与参数列表相关的数
	 * 
	 * @param innings
	 * @param among
	 * @return
	 */
	public abstract List<Innings> searchInnings(Innings innings, Double[] among);

	/**
	 * 修改牌局信息
	 * 
	 * @param innings
	 */
	public abstract void modifyInnings(Innings innings);
}
